﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ComeSeeThis_MVC2.Models.Feedback>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Leave Feedback
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Leave Feedback</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <table>
            <tr>
                <th>
                    Name:
                </th>
                <td>
                    <%: Html.TextBoxFor(model => model.SubmittedBy) %>
                    <%: Html.ValidationMessageFor(model => model.SubmittedBy) %>
                </td>
            </tr>
            <tr>
                <th>
                    E-Mail
                </th>
                <td>
                    <%: Html.TextBoxFor(model => model.Email) %>
                    <%: Html.ValidationMessageFor(model => model.Email) %>
                </td>
            </tr>
            <tr>
                <th valign="top">
                    What you<br />gotta say:
                </th>
                <td>
                    <%: Html.TextAreaFor(model => model.Text, new { rows="5", cols="50"}) %>
                    <%: Html.ValidationMessageFor(model => model.Text) %>
                </td>
            </tr>
        </table>
       <input id="Page" name="Page" type="hidden" value="<%: Request.Url.PathAndQuery %>" />
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="BodyTagContent" runat="server">
</asp:Content>
